<?php
namespace App\Service;
use App\Models\QuestionVersion as QuestionVersionModel;
class QuestionVersionService extends BasicService{
    protected $modelName = "QuestionVersion";

    public function delete($id){
        return QuestionVersionModel::where("id",$id)->delete();
    }
    public function getQuestionVersionData($where,$filed="*"){
        return QuestionVersionModel::where($where)->where('usable',1)->get($filed)->toArray();
    }
}
